This line causes a JSLint error: `'_onConnect' was used before it was defined`