Changed emitsvg to write and open a tmp.html file, for OS X