Fixed script to work with all species pages