Updated cross-origin test in more/functions/texSubImage2DHTML to use newer methodology
Also applying fixes to texImage2DHTML
Merge pull request #560 from toji/cross-origin-2

Updated cross-origin test in more/functions/texSubImage2DHTML