fix wf:update API to work without jquery