Refactored for bootstrap 3.0