Js file for requesting and updating JSON WAT