js and format