Fixing parts of javascript

Forgot ;