Only inject JS code when Chat Engine is active.