Fix JSHint errors and minor optimizations
Merge pull request #31 from onaliugo/master

Fix JSHint errors and minor optimizations