added logic for 'clear' button; updated gruntfile