javascript: cleaned up
javascript: smarter inliner
javascript: translateDeclaration should not return JSSeq
javascript: eliminate dead cases
javascript: main and invokeLoop as JS
javascript: initial code for function inliner