made map.js a plugin w/ options