javascript only loaded in html file?