added code for calling js function for updating local region msg