Try this... btw I think your ID tags are in the wrong spots...
function onClick(e){
var layer = e.target;
plot_percentage_A(layer.feature.properties);
plot_percentage_B(layer.feature.properties);
map.fitBounds(e.target.getBounds());
}
function plot_percentage_A(props) {
$('#profile').html('Something Here');
}
function plot_percentage_B(props) {
$('#messages').html('Something else here');