Fixing the inline script error in recent Chromes.