js widget added for live preview
Merge pull request #1 from kaelinbu/widget

js widget added for live preview