update step 5 client.js top match step 6 (with small diffs)
checking step 7 files