[download] Throw TypeError when Constructor called as function

BUG=https://crosswalk-project.org/jira/browse/xwalk-959
Merge pull request #282 from deqing/fix-constructor-throw

[download] Throw TypeError when Constructor called as function