Fix for dangerous code warning when saving in the browser