update jsobject
new implementation