Write script tag to head