Node modules added and index error fixed