handle SSJS environments too
Merge pull request #5 from nathan7/ssjs

handle SSJS environments too