Translate sb-admin.js into CoffeeScript for legibility