Defining this function after the things it uses.
JSLint/JSHint globals comment.