Update vanilla version with same functionality as jquery version, but still used js-toggle-container