Fixed Date Object of the counter to work with FireFox too