change ref to $ for jquery in admin.js