[#443] Remove jsonpreview and pdfpreview minified js files

We've decided not to keep the minified javascript files we did in the
repository, only keeping the third-parties'. This commit also makes the
tests more resilient to breakage, as we don't care if the page has
the .min.js or the .js file added. Only that it's there.

Fixes #443 and #446.