Is there any need to do validation on the cue you get passed here?  For example, could it be missing values (like cue.size) or something?  If so, a bunch of your code below will do odd things:

```
> var cue = {};
undefined
> var boxLen = cue.size + "%";
undefined
> boxLen
'undefined%'
```