Simplify example with goog.History