Properly close <div>