old_contents: var express = require('express');
  var db = require('../db.js');
  var router = express.Router();
  
  /* GET video page. */
  router.get('/videos', function(req, res, next) {
    var term = req.url.term;
    if (term) {
      var videos = db.getVideos(term);
      res.render('videos', { title: 'Videos for ' + term, result: videos });
    }
    else {
      next();
    }
  });
  
  module.exports = router;
  
new_contents: var express = require('express');
  var db = require('../db.js');
  var router = express.Router();
  
  /* GET video page. */
  router.get('/videos', function(req, res, next) {
    var term = req.query.term;
    if (term) {
      var videos = db.getVideos(term);
      res.render('videos', { title: 'Videos for ' + term, result: videos });
    }
    else {
      next();
    }
  });
  
  module.exports = router;
  
subject: switch to query string