This javascript library was developed by me quite a few years back.

To preview the code in action Click Here

View the JavaScript code