Updated js file to select active page….