Update code/hooks.js