See working implementation at http://cse460.the.tl
Tip Calculator implemented with object oriented coffeescript
the main files are
Tip.coffee(for the model)
I am using a Model View Controller design pattern. Everything else is straigt forward.