added to js function form is now clearing after the append to