JavaScript optimizer for CocoonJS applications