IE<9 compatibility for pinlike function