default js extname for main field, fix #842
Merge pull request #3 from afc163/patch-2

default js extname for main field, fix #842