Compiler: generalize js optim
Compiler: Js optim