Fixed newlines
Move function definitions to top
Missing spaces and semicolons
Fixed spacing
Move function declaration to top
Various coding style improvements
Various coding style improvements
Various coding style improvements
Move function to its docs
Various coding style improvements
Various coding style improvements
More readable debug statements
Correct spacing of functions
Include setup script JS in jshint as well
Whitespace cleanup