Bootstrap Modal correction

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