Boolean Switch

Written in vanilla javascript. Not libraries used. See the code on Github