James and Johnny become X Factor judges for one night