javascript formatted