insert code in <head>