ActiveXObject is not defined and can’t find variable: ActiveXObject
ActiveXObject is available only on IE browser. So every other useragent will throw an error On modern browser you could use instead File API or File writer API (currently implemented only on Chrome)