Added mocha test runner html, and reworte to client side code.