separated out main js file for data mapper, getting ready to create new repo