updated coffescript snippets