updated readme, fix bug in optional browser version code, and add test