simplify map implementation.
build as palace.js, not amd/index.js