> It might be better to mock the Javascript clock, using either sinon or Jasmine

Fixed.