Node.js Virtual Web Browser/Spider and DOM Effect Analyser

i want to write a node.js application that crawl webpages , i already tested libraries in npm like crawler . but i have few problems :

i need cookie management . i need client side javascript executed on received html exactly like what browsers do, i don't need any graphical view, just want webpage processed for client side scripts , and also i want <script src="http://...."> tags and any other tags effect on this process with **my provided cookie ** . how can i solve these problems ?

thank you so much .