Fixed classes functions; they now use Dom's element.classList (IE prior to 10 will now fail :D)