Fix a couple of issues using this in a browser

Address issue #30 (MSApp isn't defined outside of Windows apps).
Add support for browsers that don't yet have the Map data structure.