jquery history with back/next working