main js, readme updates