Fixed jQuery script for the Title Overlay Portal Mode