Fixed map_creator.js (issue #11)

Now works in Firefox. Now supports multiple entrances.