Update to javascript