test internal.download()
fixed line too long errors
fixed jslint errors