Adds JavaScript AST optimizer.