Add compression function for main.js
Merge pull request #3 from CarterTsai/ui/1.2

Add compression function for main.js