With NW.js? Do you have any fullscreen scaling?
Should be automatically centered... If you're talking about your game in a window centered on the users screen/desktop, I don't think that can be done within the program, it will be up to the user to manually reposition the window.
Or maybe I still don't understand what you are talking about.