fix selected flavor's screenshot not loading #3847
remove superfluous code
remove dpm
use standard jquery closure format #3847