Update createDialog.js

Changed syntax to support bootstrap 3.0.x