Update doesMatchPage.js