Working CaseEdit.js