Corrected integration in script tag environments