[jan] Fix JavaScript error if Nag is not installed.