JavaScript compilation WIP
Fix declaration of variables in global scope
Use BitArray.Not instead of BitArrayEx.Flip