Update pwl_func.js