Added 'clean' task to Gruntfile. Fixed some potential problems found by jshint. Tidied Gruntfile.