This should be moved to the javascript section above html, that is the more common practice