got submit form working
ironed out jshint errors