tets functions.js