Minor bugfixes (date handling, getTrends closure)

Without "new", Date(whatever) just gives you a current UTC timestamp
(presumably constructor ambiguity). Also, getTrends is a closure on the
correct side of things, shouldn't be double-invoked.