replacing lodash.get with new js features