Example JS/HTML demonstrating the bug