studio cleanup

A couple of relatively minor cleanups in studio. Grunt tests all pass. I'll probably also try to do a little bit of a manual pass.
I haven't been able to find anywhere, though it's the nature of JS that it's difficult to prove.