# Mabe as a first step place your script tag at the very end of the HTML directly before the closing tag. Or place it inside the head