Javascript plugin to process partial content