[download] Fix JS coding style

Fixes #159.
Merge pull request #183 from deqing/fix-coding-style

[download] Fix JS coding style