scoping of page variables and functions