form and protype.js conversion to jquery