reset the javascript to a blank slate