It was a simple error or I can say IE flaw. I had few console.log() in the code, that were causing the problem. In IE when you run a webpage(not in debug mode), than IE not able to process console.log(), so it gives error.
I removed all console.log() and it worked.