javascript functionalities set-up for company rankings