Remove use of JError