Replace second set of #defines with templates in JS_Define.h

Continuation of effort now that a test case is present on origin/master.

R=brucedawson@chromium.org

Review URL: https://codereview.chromium.org/945623002
2 files changed