removed ready, added cleanup for a js dtor, adding some logging