removed Date.now() call due to IE problems