Update commonFn.js