format javascript