complete proto ots.js