pub fn get_reports(cx: *mut RawJSContext, path_seg: String) -> Vec<Report>