Coffee script applied, structure changed, few things removed.