shifting to HTML5 pushState
fix parameters: q -> search and f -> library