fix function.js whitespace