fixed some JSLint warnings
Merge pull request #167 from jabadia/jabadia-jslint-fixes

fixed some JSLint warnings
more JSLint fixes
Merge pull request #168 from jabadia/jabadia-jslint-fixes2

more JSLint fixes