Fixed sub_question deletion deleting parent question
Changed all coffee script to javascript