Fixed an issue with a bad variable reference when trying to execute 'cake regenerateApiKeyDb'
refactored the code for the widget script downloader