Added JavaScript to Register page