js edit

- Changed Questions
- made finalResult and text global variables