wts.js got just better

I had done it almost a year back. Committing it now.