I use the Google Closure compiler for some things, and thus I have `gjslint` installed which is a nice problem. You can run it if you want. There are other style checkers for Javascript, but this is one I've found that isn't too strict (jslint.com would complain about a hundred different things) and still does its job. If you run it, don't mind the "line too long" or "single quote preferred" since we don't care too much about those things. I'm copying the other errors in style that you may fix:

Line 1, E:0001: Extra space at end of line
Line 38, E:0001: Extra space before "("
Line 43, E:0002: Missing space before "("
Line 48, E:0001: Extra space at end of line
Line 54, E:0121: Illegal comma at end of object literal
Line 72, E:0002: Missing space after "="
Line 78, E:0001: Extra space before "("
Line 163, E:0001: Extra space before "("
Line 168, E:0002: Missing space before "("
Line 174, E:0001: Extra space at end of line
Line 180, E:0121: Illegal comma at end of object literal
Line 184, E:0001: Extra space at end of line
Line 208, E:0001: Extra space before "("
Line 213, E:0002: Missing space before "("
Line 218, E:0002: Missing space after ","
Line 221, E:0001: Extra space at end of line
Line 227, E:0121: Illegal comma at end of object literal