Added an Event Listener to the Toggle Button.
Added methods to turn the flashlight on and off.