Generate correct active classes for Bootstrap