Switched to running transform() on next tick and returned unbind function.