Update ZeroConf.js register method

Updated ZeroConf.js register method to pass actual object.