Replaced headScript