Convert server/index to JavaScript
Add error message to 500.html