add fix for safari initial popstate
Merge pull request #1 from dtothefp/event-test

add fix for safari initial popstate