Added file func.js