Fixed stupid bug that broke the javascript
working with old form code now