How can I change whole site color with toggle a button

Have a look at my code above, it should work (in the masterPage.js) even if it’s marked as an error in the editor.