fixed js errors around going button