Update current user fields through JavaScript?

I haven’t been able to make much progress on this, can anyone point me in the right direction?