Implement #48741: load js files at end of html

http://forge.typo3.org/issues/48741