default js extname for main field, fix #842