basic parsing of html and js working