Ok the only way i see is to parse out the javascript and target the var =xxxx
then use eval() which could be missused and execute code so do your checks.
once you have the code and you use eval you can then move the vars to msg
eg.
[{"id":"7a616f96.00ad9","type":"function","z":"8d22ae29.7df6d","name":"","func":"msg.payload = msg.payload.split(\"var attributesCombinations=\")[1].split(\"/\\* ]]> \\*/</script>\")[0]\neval(\"var attributesCombinations=\"+msg.payload);\nmsg.quantity = quantityAvailable;\nmsg.attributeCombibnation = attributesCombinations;\nmsg.combinations =combinations;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":410,"y":3860,"wires":[["a2bea5e6.17f7c8"]]},{"id":"861e6d4e.bd532","type":"http request","z":"8d22ae29.7df6d","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://www.kidswholesaleclothing.co.uk/plain-raglan-pyjamas/1065-light-blue-long-raglan-sleeve-pyjama-set.html#/72-size-3_4yrs/143-quantity-pack_of_6","tls":"","persist":false,"proxy":"","authType":"","x":230,"y":3840,"wires":[["7a616f96.00ad9"]]},{"id":"a2bea5e6.17f7c8","type":"debug","z":"8d22ae29.7df6d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":570,"y":3860,"wires":[]},{"id":"69646fb2.bba928","type":"inject","z":"8d22ae29.7df6d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":3760,"wires":[["861e6d4e.bd532"]]}]
I have target all the vars, but you could just target var = quantityAvailable
[edit] just targeting quantity
[{"id":"861e6d4e.bd532","type":"http request","z":"8d22ae29.7df6d","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://www.kidswholesaleclothing.co.uk/plain-raglan-pyjamas/1065-light-blue-long-raglan-sleeve-pyjama-set.html#/72-size-3_4yrs/143-quantity-pack_of_6","tls":"","persist":false,"proxy":"","authType":"","x":230,"y":3840,"wires":[["7a616f96.00ad9"]]},{"id":"69646fb2.bba928","type":"inject","z":"8d22ae29.7df6d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":3760,"wires":[["861e6d4e.bd532"]]},{"id":"7a616f96.00ad9","type":"function","z":"8d22ae29.7df6d","name":"","func":"msg.payload = msg.payload.split(\"var quantityAvailable=\")[1].split(\"var quickView=\")[0]\neval(\"var quantityAvailable=\"+msg.payload);\nmsg.payload = quantityAvailable;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":410,"y":3860,"wires":[["a2bea5e6.17f7c8"]]},{"id":"a2bea5e6.17f7c8","type":"debug","z":"8d22ae29.7df6d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":570,"y":3860,"wires":[]}]