added client to webapp with javascript