Port ngapp to coffeescript