Clean and fix csg.js(used jshint, jslint, yuicompresor):
- removed extra commas
- declared missed variables
- formatted text
- used tabs
It works minified by yuicompresor (from https://github.com/tml/yuicompressor fork which correctly minifies getters and setters)