added class to jQuery on/off popstate bindings