Made the edit profile form into a js object