Update to javascript objects