fix:set global js variable for widget button