mediabrowser: coffeescript refactoring