Compile v0.3.5 fix to JavaScript