Update index.html to HTML5 elementsa and new, simpler pattern

Rename client.js to sparrow.js and make it self-loading

Update respond controller function to nodejs style error-first return pattern