Fix function to use jokes path