Some x-browser fixes (event.target in script#onload and localStorage in IE < 9)