history/popstate implementation now works with green tests