Add update/save js behavior