Remove replace function on dept to test if this is breaking IE "Object doesn't support property or method 'replace'"