Js file to insert datain database.