added feature to add inline JavaScript to the <head>