Fix js syntax issue with ie