Refactor the Socrata.coffee