JS to HTML changes