js: print a warning when no device is found