Javascript: Parse with multiple passes (to catch all enums, etc)