Various javascript fixes

- missing ;
- confusing !