Updated client.js for personal use

If I messed with other people's code, please forgive me. I am a n00b to directly editing code on GitHub.