Jsoup is only for parsing HTML, what you want here is a headless browser. If you must use java for this then your options here are:
htmlunit (but the javascript support isn't great, wouldn't reccomend it if the page has a non-trivial amount of js)
Selenium(browser automation, includes language bindings for Java)