Update widget.js

Always call init()
Cache density check