added callback function after done

Add callback option after load all code