broke up main js file into mulitple files