re factor to separate geometry from style, pass 1
re factor cleanup wip
latest js for demo