Move adding of scripts from field 'head' to 'scripts'