Added getOperatorList to api.js

add  '... to separate rendering and operator list logic'