This is better, but still hardcodes the fact that a widget will be a top level folder inside of a container folder (e.g. oae-core). This is probably a safer assumption, but probably not entirely safe. My preference would be to make paths a dictionary:

```
{
   'pathToJS': 'widgetId',
   'pathToJS': 'widgetId',
   ...
}
```

The batch request can then just use _.keys(paths) and when the results return we can do an easy lookup for the widget id