js widget added for live preview