Update user-func.js

Further optimization of changefunc