clean up js

Clean up syntax problems with ExecJS