Refactored code/hooks.js#runHooks to not need return

- Initial implementation required logic based on what data was returned
from the hook callback. Realized it is better just to return the data
within the original argument object passed to the callback.
- hidePortal hook : stops the renderPortal from trying to display the
portal