Make times module compile with javascript backend

I hope they are actually gcsafe. Don't know how to determine that.