Fix and update admin panel JS