JSLint function call order