Fixed javascript errors such as missing semicolons, including #62