Updating callback mechanism works so that it works with JavaScript.