split out ts method for pre-IE-10 vs. post-IE-10