commented functions.js