format.js and test