javascript for updating the outlet status after an event