Added hook.js