Implemented following changes :

1. Modified code using Object Oriented approach.
2. Reduced the use of innerHTML
3. Used JSON to store all the questions.