Move your two `<script>` tags to the very end of the `<body>` instead of having them in `<head>`.