fix 404s
Lib for API calls

JS Library for the API calls