Fix few typos and JavaScript syntax for .js files