Added resource.js and started its use.
Seems to work now with basic ajax operations. Still not with update.