global var and require.main