Move .refresh() calls below initial var declarations for consistency