JsHint + fixes found in drawer.
Merge pull request #5 from wiredearp/master

Restore old fixes