cleanup: format if, for, while, etc. consistently
cleanup: format object literals consistently
cleanup: add spaces around infix operators
cleanup: add missing semicolon
cleanup: replace function declarations with function expressions
Merge pull request #153 from davidchambers/formatting

improve formatting consistency