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

Restore old fixes
Tick global and local was reversed.
Merge branch 'master' of github.com:wiredearp/spiritual-gui
Merge pull request #6 from wiredearp/master

Old fixes