mapScript now works cleanly, generating json output - can specify pass level: 1 / 2 / 3