You need to place this function after `checkForUpdate` to fix the JSLint issue.