FWIW: we can also do this
```js
$window.API_URL = '<%= root_url %>'+'/api/v1';
```
if we didn't want to use another gem. Just bringing options to the table!