bugfix; hasClass only works for one class at a time