Add a functional client class in js
Add client.js to makefile