Going through and fixing lint errors + switching to JSHint - needs some configuration.

Reason behind the switch, there are things I don't find problematic that is not possible to turn off; for instance - defining a var inside a loop : for( var i=0; ....) don't want this to have to be at the top of the function.
ALmost there - only 22 errors left!
We are now complying with the JSHint rules setup for now - these might be tightened at a later stage, but for now - good stuff!