Adapt js file to our javascript style guide.