move js build step into gyp file, add basic JS frontend for translator