hooks.js: remove underscore dependency.