Fixing formatting of js file