refactor
updated demo.coffee