Put your index.html and shapes.js in the same folder, then use <script src="shapes.js"></script>. Place the script tag after the <canvas> or add defer so the canvas is ready. Also, use beginPath() and stroke() (or fill()) with ellipse so it actually draws.