Refactor socrata.coffee