style(pageObjects): wrapped everything in an IIFE to limit var scope