Check out the documentation for URI.js: http://medialize.github.io/URI.js/docs.html#accessors-search