rewrite it with coffeescript [close #4]