Move globals to one config object
Merge pull request #1193 from darkwing/js-config

Move globals to one config object