Included data api files and error check in index.html when there is data for less than 24 hrs