updated script to remove bug when resizing browser window, fixed README and index file to reflect the change