fix javascript for hiding/showing the continue button