functions.js: Fixed it!