Refactored CoffeScript dark.js.