Jasmine globals
Make jasmine globals configurable
Tests for jasmine globals
Remove trailing comma
Merge pull request #1607 from cburgmer/2.x

Support Jasmine environment