Abstracted the usefull bits into lessArcane.coffee.