JS: adding pageVisit analytics