Add ui-select-* classes to flag important elements
Move helper function getElementsByClassName to service