TOTP code and support on implementation

Dear All, @amit-wix @yisrael-wix

I am looking at completing a TOTP utilising the code from this link, I believe the JS piece is best placed in a JSW backend file and brought through to the front end, I am currently finding it difficult to get it working and any support on being able to implement this would be greatly appreciated it is the last piece of the website that I have been developing and I need it to add further security to the information that I will be requesting any guidance on achieving this would be greatly welcomed.

http://jsfiddle.net/russau/ch8PK/

I look forward to hearing from you in the very near future.

Best wishes

Si