TurnWheel/jReject — pull request #12 by lihan (2012-06-21 04:44:14+00:00)
Title: Corrected a few bad JavaScript smells

Some changes for your JavaScript code:

+ I have changed all the tab indents to use spaces
+ Always to use { } after if
+ use typeof var === 'undefined' to check undefined variables
+ Use dot notation to access a dictionary instead of var['key']
+ Check the variable exists before using them
+ Some other minor fixes

Please consider this as code quality improvement, and kindly accept it.