moves index page to views and adds r2d3.js