options.index can now accept a function

corrected implementation: options.index = function(req, res) { return 'html template'; }