in the process of updating javascript to coffeescript