change spin.js to return object and work on method to have widget object repo in case of multiple