// loadScript loads and compiles a JavaScript file.
loadScript loads and compiles a JavaScript file.
// loadScript loads and compiles a JavaScript file .
func loadScript(filename string) (*goja.Program, error) {
	b, err := ioutil.ReadFile(filename)
	if err != nil {
		return nil, err
	}
	return goja.Compile(filename, string(b), true)
}
func loadScript ( filename string ) ( * goja . Program , error ) { b , err := ioutil . ReadFile ( filename ) if err != nil { return nil , err } return goja . Compile ( filename , string ( b ) , true ) }
loadScript loads and compiles a JavaScript file.
loadScript loads and compiles a JavaScript file .