Code changes to fit on Chrome browser