moved some js into footer