Remove unnecessary require
Use window.location.pathname as part of url for ajax call
Fix typo in set_listings
Change ajax sort/filter call routes to reflect changes in ajax call urls