Use lodash.runInContext()

Closes #1