results now returns JSON, TODO implement javascript to handle json response
Converted to send json and generate html via javascript