architecture of js web client