Fix for admin JavaScript check.