adding examples to function.js