code: function changePassword(masterPassword, newPassword1, newPassword2) {
      if (newPassword1 !== newPassword2) throw new Error("New passwords must match.");
      else {
          var contents = getContents(masterPassword);
          init(newPassword1, contents);
      }
  }
docs: Changes the password of the safetext file.
  @param masterPassword
  @param newPassword1
  @param newPassword2