Alternative to eval for resolving deep JS objects using strings