Changed the way PN dictionaries are sent to JS code.