I am unable to call a function from HTML file. This seems simple and my code matches what I've seen in similar SO answers, but I am missing something still. I know the JS is loading/running because the game in the canvas is working. Edit: Chrome console returns "testFunction is not defined" meaning the JS is NOT loaded. Why?
This is a test in the JS file:
function testFunction(){
alert("It works!");
}
and it's called from the HTML like so:
<button type="button" onclick="testFunction()" id="testButton">Test</button>
Here's the JSFiddle http://jsfiddle.net/goldrunt/SeAGU/