Update bootstrap-wysiwyg.js

DRY up a small section of code