Converted main-client.coffee to litCoffee