Move some js to the footer so it actually works