Script

The script loads first the document and extracts the javascript files url's.
Then tells wget to download the required url and all extracted url's (because wget will not download by itself those url's).
After that checks the wget outputs and prepares the result answer for the plugin.

It will give information about :
- total download time
- number of files downloaded
- a resume with the [ totalfiles / numdownloaded ok / num with redirect / num of errors (500) ]
Also will return the following status codes:
OK - If all files were downloaded ok (with a 200 status code)
WARN - If any of they returned an status 300-400
FAIL - If any of they returned an status > 500
UNKNOWN - If wget is not available to do the tests