Move event emitting dom helpers to vm.