Changes to index and functions.js