numerous fixes to step 4 client.js syntax
minor syntax change to step 4 client.js, upgraded step 5 to follow project coding conventions.