Fixed issue opening modal window 'XMLHttpRequest cannot load javascript:'