Tidied up index.ejs to remove repeated lookups