Adding support for bootstrap 2

Those changes are required for bootstrap 2.x