replace by ca_with_func.js