create formatter.js file