removed globals so IE passes and delete is not needed #476 #625