fix javascript building, add custom build options
v0.0.2