Module component

js_ext is changed to a module compatible with CommonJS and AMD

Also renamed makefile target from js_ext to js_module