fixed benchmark javascript