var declarations, minor syntax errors, some style incosistency, and no global object prototype modification
Merge pull request #1 from themightychris/master

some minor syntax / style improvements