Added missing docblocks
Added default value for property
Added 'use strict' to all functions
Reformatted code (added spaces between function and paren, etc)

Moved curly braces up to the same line as the function declaration.
Changed indentation on some line wrappings.
Indented some commented-out code to better match surrounding code
Removed some unused parameters (event objects)
Switch from equality to identity operator
Moved variable declaration to top of function
Added missing local variable declaration
Explicitly use window.console to appease jslint
Renamed unused function parameter
Wrapped long lines
Standardized on single quotes everywhere
Cleaned up docblocks for JSdoc parsing