Port over some of @westonruter's changes in #3
Clone the object so we can properly instantiate it multiple times
Dependent on widget customizer code too
Merge pull request #6 from danielbachhuber/js-fixes

JS fixes