add form code in index and JS