[CLEANUP] functions.js