js event for doorbell and door open