Js experiments 6

This pull should close the issue. All architecture and design issues can be solved later.