I have updated the files and its working mostly well now - see demo file in the latest API's version 2