rationalised js into one file forms.js