better working history
put first url also into history but disable first pop; updated history.js for better encoding support