common js file must match both criteria