add some todos, cluster magic argparse, start js handling

- Lots of TODOs
- to avoid duplicating argparse between Java and HTML5 applets,
define helper decorator
- expand example to try and interact with JS to applet