update js code after bootstrap 3.0 upgrade.