logFcn.js