Added processing instructions to JS object conversion