var Q = require('q'),
    FS = require('fs'),
    path = require('path'),
    readFile = Q.denodeify(FS.readFile),
    yaml = require('yaml'),
    scriptures;

readFile(path.join(__dirname, '..', 'scriptures.json'), 'utf-8').then(function (yamlMarkup) {
  try {
    scriptures = JSON.parse(yamlMarkup);
    console.log('scriptures', scriptures);
  } catch (err) {
    console.log('err parsing yaml', err);
  }
}, function (err) {
  console.log('err loading yaml:', err);
});

function randomIntegerLessThan(num) {
  return Math.floor(Math.random() * num);
}

function pickOne(list) {
  return list[randomIntegerLessThan(list.length)];
}


/*
 * GET home page.
 */

exports.index = function(req, res){
  var work = pickOne(Object.keys(scriptures)),
      book = pickOne(Object.keys(scriptures[work])),
      chapter = Number(pickOne(Object.keys(scriptures[work][book]))) + 1,
      verse = randomIntegerLessThan(scriptures[work][book][chapter - 1]) + 1;

  console.log('work, book, chapter, verse', work, book, chapter, verse);
  res.render('index', { title: 'Scripture Lottery', work: work, book: book, chapter: chapter, verse: verse });
};

@@ -116,361 +116,44 @@
     
-yaml = require('yaml'),%0A    scriptures;%0A%0AreadFile(path.join(__dirname, '..', 'scriptures.json'), 'utf-8').then(function (yamlMarkup) %7B%0A  try %7B%0A    scriptures = JSON.parse(yamlMarkup);%0A    console.log('scriptures', scriptures);%0A  %7D catch (err) %7B%0A    console.log('err parsing yaml', err);%0A  %7D%0A%7D, function (err) %7B%0A  console.log('err loading yaml:', err);%0A%7D
+scriptures = require('../scriptures'
 );%0A%0A

Use native json loading.