Even with Javascript, it's still just http GET's and POST's between the client and the server. Either read the Javascript and figure out what needs to be sent and/or use something like FireFox's Live HTTP Headers plugin to see what is being sent when you're navigating the site, and then send those requests yourself using WWW::Mech or LWP::UserAgent.