Fix hooks to be a regular object

This fix changes the `hooks` property from an array-object to a regular, plain, vanilla, object :+1: !