fix devicetype.js error in ie 7 & 8