Modified getText function to make an ajax call for bible text