Update EditorManager.js

use document.currentScript if available 

we use a js file compressor, so user dowload only one compacted js file with all script needed (there is many raisons for doing that)
for tinymce the path is wrong because the regex not match the path and is not the real path of script.

so in our compressor each script is preceded by this declaration:
` var src = "real/path/to/script.js";
( typeof document.currentScript == 'string' ) ? document.currentScript.src = src : document.currentScript = { 'src' : src }; `

in this case document.currentScript is always set on all browser and we have no issue.

https://developer.mozilla.org/en/docs/Web/API/document.currentScript

i have read this code and know this can be fixed with preInit.baseURL, but document.currentScript is a more efficent way to get base Url.

Regards
Merge pull request #363 from mkdgs/patch-1

set baseURL with document.currentScript if available