fix seq nums
added jslayout, generalized drawing and draw server