add small js client and demo page