Part of any good Search Engine Optimization (SEO) is having a page that loads fast. Minifying the HTML code, JS code and CSS code by removing all the unnecessary characters are things you can do to speed up your pages.
Use this tool to minify your JS Code.