added ranking.js with my solution to the kata