make mini use a side main js file