Added Optimizer code for DaasJS