fix javascript error in admin.html