Update user-func.js

Fixed various errors in changeFunc. Ids could not be found before this.