linked the javascript to html file