upload page is run by JS