moving the intro text script to the main.js instead of having it inline in the html