Fixed implicit global var.
Cleanup:

* Removed trailing whitespace
* Removed unnecessary 'exports' assignment (module.exports is enough)
* Removed unnecessary 'var' (function params are already vars)
* Added missing semicolons
Merge pull request #1 from papandreou/master

Fixed implicit global var + some cleanup