Implement #48741: load js files at end of html