This is a sample client written in JavaScript.