
/*
 * GET home page.
 */

var helpers = require('../helpers');

exports.index = function(req, res){
  res.render('index', {
    title: 'JS Box',
    libraryUrls: helpers.getLibraryUrls(),
    scriptUrl: req.param('scriptUrl')
  });
};


/*
 * GET home page.
 */

var helpers = require('../helpers');

exports.index = function(req, res){
  res.render('index', {
    title: 'JS Box',
    libraryUrls: helpers.getLibraryUrls(),
    scriptUrl: req.query.scriptUrl
  });
};

Use req.query instead of req.param for clarity
Use req.query instead of req.param for clarity
