fixed #2078 Sync "initWithFile" to "init" for JSB