Remove instances of addJSError() fn