I\'m getting the following error
Uncaught TypeError: Cannot read property \'appendChild\' of null myRequest.onreadystatechange @ script.js
Uncaught TypeError: Cannot read property \'appendChild\' of null
myRequest.onreadystatechange @ script.js
Instead of using your script tag defining the source of your .js file in , place it at the bottom of your HTML code.