Changed Javascript modal function

Until now we relied on Magnific Popup for our modal functions in the current project. And although it is a very nice modal solution it was overkill for our current project. In this project we really like to build and finetune the interface, and control all the aspects of it. So we changed to the far more basic but especially suited for our needs to the query-modal which fits this project.