Update js form variables