initial pass at main js file