update grunt config and make some jshint fixes.

trimming space from end of lines results some quirky diff looks nothing changed.