format javascript code