how to attach javascript to html