modified js to clear only message forms on submit