Moved gs code before </head>.