How to store output in client-side plugin

This thread should answer your question.