Suggest to use require like `var mozApps = require('modules/navigator/mozApps');`. Detail please refer to my comment below.