buildFileName.js: add filename builder function