Make annotation.js respect API boundaries.