changed the index controller to pass an array to jade