Add support for bootstrap 2.x

Some changes was required to support bootstrap 2.x