export var now = function () { return Date.now ? Date.now() : +(new Date()); };
info at phpclasses dot org