rewrite 2 loops (one rec, one do-while) using "CPS" (window.setTimeout)
stop generating "TODO reference", generate something usefull instead, but still needs a lot of work
Merge pull request #37 from pw374/master

javascript and references (2 separate issues)