replacing fileSystem with URL.createObjectUrl for FF