How to use the James Webb Space Telescope to hunt for life around white dwarfs