removed function definition inside for-loop in private method #setEnv.
On branch master
modified:   lib/vapid.js