replaced some of the cd.get/post calls to $.get/post