Added conditional loader to Bootstrap JS