Improved support for multiple instances of widget using twiget.js