began using JSlint on the code
changed jugglingasync to not use for loops
changed httpcollect to print the full err