HTMLScriptElement onload & onerror polyfill

Warning: don't use onreadystatechange with onload and onerror!