add ability to switch code examples between js and coffee

Fixes #2