LF-12465: Fix slide toggle button for IE9

IE9 doesn’t recognize classList so replaced with wordier JS.