Support object based input

removing xml based request to js based