Fix hooks array bug

change tw.hooks.titles attribute to .name