Fix for putting script in head