fix getRanklist function (index.js)