Fixed "names" variable leaking out to window object.