JSHint, Readme

fix all jshint warnings and errors
fill readme example