You are using inputs[0] and inputs[1] all over the code. First of all, it makes sense to use a separate variable for those cases. Secondly, you want to give a meaningful names for those variables because it is very hard to understand for a developer what those inputs[0] and inputs[1] represent. And lastly, in the case (if for any reason) your 
```inputs = toggleSwitch.find("input")``` returns and empty jQuery array you will have JavaScript exceptions for inputs[0] and inputs[1]