adapt to bootstrap 3.0 and jquery 1.10