Added the javascript for the reset button