Moved js into the footer