JavaScript hide button fix