Cleanup jshint warnings

JShint warning cleanups (there are still quite a few issues there on 0.4.1 branch due to unused varaibles though I didn't touch them as it seems that work is still in progress)