Style: fixed spacing, added gjslint rules

Created tools/gjslint.sh that can be used to automatically check for
conformance with Google coding style.

Fixed spacing inconsistencies.

Added missing type info to JsDoc comments in ScriptManager.js