simple loader class that returns a callback action after a count value has been reached from asynch js calls