Page Source can be obtained with «Page Html» action. This action saves page source to variable. You can process it with javascript function later.