modify console snippets in js/coffee