Added two main js file for two types of extract