Fix for making the Switch Style work in Firefox and IE9+

With this refactoring the switch will look and work just like in Webkit browser when opening in Firefox and IE9+.

IE9 doesn't support CSS transition so it wont have a smooth transition but the switch will flip and work fine.