change "Date.now()" to "new Date().getTime()" to support IE<9