Fixed jshint warnings (global vars, missing or extra semicolons)
Merge pull request #28 from victor-homyakov/patch-1

Fixed jshint warnings (var declarations, missing or extra semicolons)