Use js-hooks