Simple wrapper library for handling onpopstate events using shebang fallbacks