[TIMOB-15630] Added missing copyResources hooks when JavaScript files are being copied.