Shader toggle function improved. No more onclicks in HTML.