Cleaned source to be gjslint compliant

Used the Closure Linter to make source code more compliant with the guidelines set by the Google JavaScript Style Guide.