Add a willOpen hook for bb_modal

... and some small jshint fixes