Enabling auto upgrade through JS password prompt