Fix detection of window object
Create test script and dev dependencies list
Add git ignore file