script should be in <head>