libtiff in Javascript