Will this schematic work?
You need a 10uF bypass capacitor on the power input (ideally a low ESR cap), it should be as close to pin 4 as possible with a thick trace.

TEMP also needs to set using a divider.  If this pin is above 0.8 * VCC or below 0.45 * VCC for more than 0.15 seconds, charging stops.







simulate this circuit &ndash; Schematic created using CircuitLab

PCB Layout will be critical for heat dissipation.  With a deeply discharged battery bulk charging starts at a battery voltage of 3V.  At 5V input, you are going to be dissipating 2W ([5V-3V] * 1A) as heat in the SO8 package which is a lot for that package.  You might want to consider starting with a lower charge current when you begin testing and work your way up to 1A watching the temperature of the IC.  You could use a 5K or 10K potentiometer for R12 in a prototype to facilitate this.

Usually the datasheet would provide die to package thermal resistance and package to board thermal resistance for a couple of example layouts, but the only datasheet I could find for this part does not provide any of this information.  

If you are designing a product for production you might look at a switching converter instead, TI and others make parts with decent datasheets, application notes and reference designs that will ease the process.  A well designed switching converter can be 90-95% efficient or more resulting in almost no waste heat at all.