func AddScriptToHeader(page *Page, js string) error {
	_, err := page.AddScriptToHead(js)
	return err
}
Add JavaScript code in a script tag in the head tag
Deprecated, use AddScriptToHead instead.
package onthefly
import "errors"
func (page *Page) LinkToJS(jsURL string) error {
	_, err := page.LinkToJSInHead(jsURL)
	return err
}
func (page *Page) LinkToJSInHead(jsURL string) (*Tag, error) {
	head, err := page.GetTag("head")
	if err != nil {
		return nil, err
	}
	script := head.AddNewTag("script")
	script.AddAttrib("src", jsURL)
	script.AddAttrib("type", "text/javascript")
	script.AddContent(" ")
	return script, nil
}
func (page *Page) LinkToJSInBody(jsURL string) (*Tag, error) {
	body, err := page.GetTag("body")
	if err != nil {
		return nil, err
	}
	script := body.AddNewTag("script")
	script.AddAttrib("src", jsURL)
	script.AddAttrib("type", "text/javascript")
	script.AddContent(" ")
	return script, nil
}