[main.js] Update "isSupported" -> "support" function