Update wps_functions.js