Alternatively we could just render this directly into our JS code by pre-processing it with ERB.

```js
// app/assets/mas.js.erb
MAS.env = '<%= Rails.env %>';
```