Use extractPages to extract the page and saveAs (with the appropriate cConvID parameter) to save it as a JPG image.
More information is available in the JS API Reference.
I tried that using the following script and other variations.
I got everything to work except that it was saving every page in every file as jpegs instead of just the first pages of every file.
You need to use saveAs on the Document object returned by extractPages...