updated code samples per esrijs updates and tech proofer feedback