Javascript to update table every 10 seconds