Update client.js

more comments this time on what scale and domain functions do