js clearbutton bugfix