svg draw on client side