added 2nd api.js