Update client.js

Allowing to pass a timestamp directly too