Finished the JS for Getting Data and Clearing Data