tried a little bit of coffeescript to get thee hang of it