A small chat with registration, written in coffeescript & php