format javascript code in the client tutorial