Adding foundation references and script to index