Removed obsolete jsonToArray() function from planCtrl.js