Switch to the `$GLOBALS['TL_BODY']` array

I propose to switch to the `$GLOBALS['TL_BODY']` array to add custom code at the end of a page independent from any JavaScript framework (MooTools, jQuery etc.)

See https://community.contao.org/de/showthread.php?40147-header_code-Footer-Code-wird-nicht-integriert