Act differently when the map is opened in modal on foreign wiki
Fixed JSDoc and simplified conditions
Merge pull request #200 from Wikia/MWEB-922

MWEB-922 Foreign wikis