If there were a version of links, elinks, or lynx that executed JS that would be wonderful.
save it to disk C-s
run one of the above commands on the saved file
save it to disk C-s
run one of the above commands on the saved file