Jordan foils major terror attacks