I'm getting a JSLint error `'_scrollSelectedDocIntoView' was used before it was defined.	 _scrollSelectedDocIntoView();` on Mac since this function is defined somewhere below this line. Not sure why I don't get this JSLint error on Windows though.