delete javascript design pattern of addy osmani