embedded simple test suite to demo.html
refactored problem2.js
Problem 1 - factored out response handling
Problem 3 - tweaked formatting