var fs = require('fs');

function Index(){
	'use strict'
	
	this.createIndex = function(filePath){
		fs.readFile(filePath , function doneReading(err, fileContents){
			
			console.log(fileContents.toString());
		})
	}
}

var indexObj =new Index();
indexObj.createIndex('../books.json');

@@ -1,12 +1,14 @@
+//
 var fs = req
@@ -53,16 +53,39 @@
 trict'%0A%09
+this.fileContents = %7B%7D;
 %0A%09this.c
@@ -119,16 +119,33 @@
 ath)%7B%0A%09%09
+// var results = 
 fs.readF
@@ -158,16 +158,24 @@
 lePath ,
+ 'utf8',
  functio
@@ -214,13 +214,11 @@
 %7B%0A%09%09
-%09%0A%09%09%09
+// 
 cons
@@ -242,25 +242,182 @@
 nts.
-toString()
+split(' '));%0A%09%09// %7D)%0A%09%09this.fileContents = require(filePath);%0A%09%09return JSON.stringfy(this.fileContents);%0A%09%7D%0A%0A%09this.getIndex = function()%7B%0A%09%09console.log(this.fileContents
 );%0A%09%09
-%7D)
 %0A%09%7D%0A
@@ -481,12 +481,33 @@
 oks.json');%0A
+indexObj.getIndex();%0A

Change create index method