add new code in functions.js

Hi, I've updated the functions.js to init a new object