add class to global window scope