How to create a jQuery plugin for a basic toggle switch | Hacker News Reader