REFACTOR: Improving JS code readability with uppercase global vars