fallback to document.head if there is not any script tags in the dom