Attempting to ascertain scope within click listener