support non-js file main