moved some contents of updateData.js back into index.html