Fixed 'kick' handler and some other jshint issues