Changed the home method to index and made it return a JSON message;