bootstrap 3 compatibility

I've updated script a little to make it compatible with bootstrap 3