Bugfix: On.Click don't find location.parent, because location is updated with history.pushState but Html is not yet append. Store location.parent once in a global variable.