Add setForm to js