Converted categories JavaScript file to CoffeeScript.