Small javascript syntax fixes

Fixes missing and incorrect semicolons and usage of == instead of === in some javascript files.