javascript xp rates array dynamically comes from ehp.php's array