added js-hooks