Adding some javascript magic, fix rankings page