added the script tag gor the javascript to the head tag of the page