add markup upload.html, move _lib