Fixed the code to insert the proper HEAD element as a <link> tag