some fix suggested by jshint
Merge pull request #6 from iwanbk/jshint

some fix suggested by jshint