converting api.js tabs to spaces