I use a different microcontroller (pic16f877) but IC-programmer has got a configuration bits that has to be fused correctly according to your datasheets. My own experience tells me that you got to disable wdt and the fuses that you are not sure that you are using in your application. The rest is just load the program, select your device and JDM as programmer and program the device..............best of luck