added sample/func.js