Beautified the javascript mode code