javascript for extra form convenience