back to first version of function.js