Revert "Updated widget JS"

This reverts commit 6cc05ff1b2ffe4e6af143036a4bc66de23853647.