This is my code:
this.loadMap = function () { this._map = null; this._width = 0; this._height = 0; this._playerX = 0; this._playerY = 0;
Just to reiterate what Paul & Juggernaut said:
In OSX open terminal and paste this command
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files