separate data grabbing js