parameterized resource and proper js object

resource will take search string and since date parameter
returns array of JS objects instead of the previous kludge