diff --git a/examples/Scripts/lines.html b/examples/Scripts/lines.html
index c51874c7..c4dd7d67 100644
--- a/examples/Scripts/lines.html
+++ b/examples/Scripts/lines.html
@@ -40,7 +40,7 @@
setInterval(draw, 30);
function draw() {
iterate();
- var now = Date.now();
+ var now = new Date().getTime();
if(now - lastRedraw > 30) {
document.redraw();
lastRedraw = now;