added require.js and implemented generator.js (removed getQuestions from front/main.js)