Fixed JS errors by removing the .close-icon.this() call.