in reply to getting rid of javascript

You could try WWW::Scripter, its for scripting web sites that have scripts :)