Added getOperatorList to api.js

and documentation comment