Moved the viewAnswers javascript code into its own file for better code separation.