cleanup index.html and try xhr upload