Fake dates in JS. From http://stackoverflow.com/questions/7931069/how-to-fake-time-in-javascript