popstate working with sorting
Back Navigation support for term + some improvements in previous code
Fixes #85
Merge branch 'fixes/85'