Removed TypeScript. Changed JS code style.

Use UglifyJS to hoist variables and check indentation.
Now Gruntfile follows the new style guidelines.