added js for species hierarchy