Have the composer and widget working well now.
Composer based install, plus improvements to js file.