Call open before setting responseType

Currently tga.js is not working on Firefox.
http://gyazo.com/b12642e11869ffa761adeaa9d9dfb571
We need to call xhr.open before setting xhr.responseType.
See: 4.7.7 http://www.w3.org/TR/2011/WD-XMLHttpRequest2-20110816/