[Doctor] Rewritten using coffee script
[Doctor] Specs rewritten using coffee script