added site url php var to javascript scripts.js
added loading image to modal