fixed CNFE when javascript plugin is disabled