Add a warning to js console on encountering an unknown event