I think we should replace the above two lines with `for (var command in this.commands) {`

Otherwise, if shared/js/media/remote_controls.js ever adds new commands, we'll end up throwing an exception.