Remove parent attribute, and only create instance of DOMHandler if it's necesary
Change callback for pushstate
Fixing typo