slight cleanup of coffeescript