fixed IE javascript errors.