Generate JS while and do..while loops for Scala equivalent.
Added support for labelled loops in the JS trees.
Proper compilation of tail calls to JS loops.
Proper compilation of remaining label defs (from match).