Solve it myself.
I use
add_action( 'wp_enqueue_scripts', 'script_managment', 99);
To move scripts to the footer. For some reason, if these are called there, on this inside page it breaks the continuity of the page. Once it was moved back to the header, the page loaded normally with the proper expected results.