Bug 1073807 - [2.0 only] Improve smoothness of utility tray

I find it weird that these utility functions, which are probably useful elsewhere, are in media_playback.js... But that's another issue.