Minify your javascript code online. Using this Tool javascript-minifier you can easly minify your javascript code. Classtools24.com provides free this tool. javascript-minifier is real fast and easy-to-use.
How to Minify Javascript Code
Put your javascript code in a text area
Click on the Reduce button
When you click the Minify button, the process starts and when the process ends, the javascript code is minified, you can copy and use.