function.js updated.