remove costFunctionJ.m