applied JS to HTML