[download] Fix JS coding style

Fixes #159.