Slimmed to json/text only, and idiomatic coffee instead of js