Adds classes to DOM elements