A client sample in JavaScript with prototype.js