JavaScript for new registrant written