updated formatting.js