improves render compatibility for Bootstrap 2 and 3