commit library
added client.js
for test
fixed bugs