import re

with open('mbetterclient/web_dashboard/templates/dashboard/fixtures.html', 'r') as f:
    content = f.read()

# Extract JavaScript
js_matches = re.findall(r'<script[^>]*>(.*?)</script>', content, re.DOTALL)
if js_matches:
    js_code = js_matches[0]

    # Write to a temporary file to examine
    with open('temp_js.js', 'w') as f:
        f.write(js_code)

    print("JavaScript extracted and saved to temp_js.js")
    print("First 200 characters:")
    print(js_code[:200])
    print("\nLast 200 characters:")
    print(js_code[-200:])
else:
    print("No JavaScript found")