commit of js widget