Convert application adapter to coffeescript