Move sidebar toggle code to script.js [ci skip]