#2 - moved javascript to a js file instead of inline in the html