convert BuRP to coffeescript