Parsing scripts inside HTML