Improved cross-browser support.

Firefox does not know "innerText" in javascript. Added tryCatch blocks
to the routes to handle unexpected AWS exceptions. Response code will be
"503 - Service Unavailable" for these rare cases. Hopefully tryCatch
really fixes it.