- js map changes
- corrected typos intests
- added window and tests for window