Move registered javascript to the footer