ensure directory at the correct spot
support server side js and arbitrary assets
proper chaining for emoji so other hooks can be called