initial commit of JS files for calling the APIs via javascript