this is one way of recording DOM access, need to process the stack quite a bit, but hopefully it's not too expensive.