This is my code:
this.loadMap = function () {
this._map = null;
this._width = 0;
this._height = 0;
this._playerX = 0;
this._playerY = 0;
You try to access both web page and resources file as file route file:///
You can do following in OSX
open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
try to request web page with local server (http://localhost/your_website.html)
read more about cross site and iFrame at http://weblog.bocoup.com/third-party-javascript-development-future/