add js to generate post from form
integrate js with html