Nitpick, but what about doing all scope work at the top and private functions at the bottom since the scope and functions/properties attached to it are similar to public API? At the very least, grouping scope and private together would be nice.