Added query string parsing functionality

Added a JS function that processes a query string from the window.location.search object.