Click function working through JavaScript
add reset function on JS