Update index.js

Handle 404 errors (send to 404.html).
Handle mydomain.com///// and mydomain.com/ etc