Simple wrapper library for handling onpopstate events using shebang as fallbacks