allow elements to be invoked as functions