Add ajax request to server for index page; dynamic rendering implimented