Updated Index.html

removed JavaScript to external file, cleaned up formatting, added class "socketSwitch" to onofswitch inputs