Fix javascript in admin panel