Update api.js

back one level