restructured js; moved js for questions and links to separate files