Destroy method fixes

Fixes for JS errors thrown when autoplay is enabled.

Thanks.