partially completes index backbone function
more work on ejs template