nit: I think we should either pass this in as an element, or change the above line to lookup the menu so it's consistent.

```
 var menu = document.getElementById('cloud-menu');
```