Added jquery switch for flashlight
Improved version