[TASK] Seperate in two files JavaScript initialization and object Media

Change-Id: Ice9acf45c60ca7c618fcfa20c17ba9114c86aaed
Releases: 3.0.0
Resolves: #58860
Reviewed-on: https://review.typo3.org/30168
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot