Make window.location.search.substring slice to the end of the string