Simplified test, moved HTML to JS