Update functions.js

missing semi colon