fixed bug in Widget class - using `get` instead of `getData`

added option for calling global JS callback