Add warning to the docs api.js file to not use it anymore