Bootstrap Modal correction in jQuery

Fix for problem with bootstrap and modal window is the solution for #1272 of Sikwan but in coffeescript