Fixed name variable leaking to window object.