Switch to jQuery method, use callback instead of reporting

Instead of assuming we just want to echo the percentage into an element
pass the percentage back to the user and let them use a callback to do
whatever they want with it.