Refactored javascript. Added disable_champ func