Update scripts.js

add function for clear button