added function.js and more benchmarks