Added strict mode in functions.js