added main js and shamefully throwing everything in it for now?