Simple Javascript .tga file reader