Jet energy scale and resolution in the CMS experiment in pp collisions at 8 TeV