Moved redactor function call to the relevant redactor js asset.