Fiddled with javascript. Tidied up submit button.