Add getLocation method to retrieve data from window.location. Add .data('page-name') @ pageName method