updated both example code and bootstrap.js