Added processOutput method to public API of JSDocument