Updating demo.js from BS 2.3