consistent spacing in api.js