Add test and target scripts to the head and the footer.