Retrieve any var from parent page

Added an index function to enable pulling any variable from the parent page.