From the Firefox developer website, I know that Firefox uses
objectURL = window.URL.createObjectURL(file);
to get url of file type, but in
Simple one liner:
var createObjectURL = (window.URL || window.webkitURL || {}).createObjectURL || function(){};