I think this needs to be `hookFileName[0]`. Also, note that you can use [aCallFirst](https://github.com/ether/etherpad-lite/blob/develop/src/static/js/pluginfw/hooks.js#L81)