Thanks for the reply, you helped me figure out the problem. I was already using the DOCTYPE especified, and found out that the header <meta http-equiv="X-UA-Compatible" content="IE=8" /> was causing the errors. Removing it or changing to IE=10 works.
Thank you.