upping functions.js