Generate the JS API from a .js file

Better than inlining JS code in C files