fixed js build, added prepare action to package.json