added func.js and links to func.js