Move potential legacy Js to footer