adding jshint rake task and dev dependency

SSIA

After review I can go ahead and fix the javascript codebase. There are
plenty of errors tho.