In order to make a call to any javascript function using ExtendedRenderKitService, The function call has to be there in PPR response(response which is generated once the requested page url is hit). During analysis I found that omniture call "afterPPRProcessing" was missing in PPR Response and the reason for it is that after adding script from Bean class using above mentioned code there was a code to refresh entire page.Below is the code
FacesContext context = FacesContext.getCurrentInstance();
String viewId = context.getViewRoot().getViewId();
ViewHandler handler = context.getApplication().getViewHandler();
UIViewRoot root = handler.createView(context, viewId);
root.setViewId(viewId);
context.setViewRoot(root);
This piece of code is doing a page refresh while this method is for capturing PPR event (On/ Off). As a result the script is not getting added to facesContext in ExtendedRenderKitService.
After commenting out this code the PPR call is working fine and I am able to generate matrix.
Thanks to people for helping
Hope this might help others