Extract common loader functions into loaders/common/tools.js. Simplify date formats.