ie reference error fixed

added missing var statement