Code size optimzation for UglifyJS.

Code size optimization by replace repeating values with variables.
Reordered CoffeeScript code, and added comments.