You can further improve dispatch tables in js by using bind.
so something like:
north: function() { movePlayer("north"); },
becomes: north: movePlayer.bind(this, "north"),
or using underscore.js(for greater browser compatibility): north: _.bind(movePlayer, this, "north"),