added format.js and error message