Moved initialization to main.html.
Added response.js for generating response output.