Added jquery switch for flashlight