doQuests function added
Outputs and general JS file cleanup