allow to configure the associate script
use the same script in simple product associate and mass action
remove useless script (refactored)