libobdref: added globals_js.h which compiles the necessary javascript structs directly into the lib