Moved script refs into head