Updated index page, now uses ajax

Grabs images from upload directory puts them on index page using ajax.